#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTimer>
#include "information.h"
QT_BEGIN_NAMESPACE
class QLabel;
class QGroupBox;
class QGridLayout;
class QVBoxLayout;
class QHBoxLayout;
class QTimer;
class Information;
class NetworkProcessing;
QT_END_NAMESPACE
class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    QVBoxLayout * Initialization();
    QString currentDate;
    QLabel *clientStatic;
    QLabel *clientNetStatic;
    QLabel *clientDate;
    NetworkProcessing* clientNetworkProcessing;
    QString getHostIp();
    QTimer dateTimer;
    QTimer dateTimerHeartBeat;

    Information & s_Information;
public slots:
    void updateTcpSocketView(bool flag);
    void updateClientStaticView();
    void updateClientTime();
    void dealHeartBeat();
};
#endif // WIDGET_H
